package xyz.csmcool.imuser.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import xyz.csmcool.imuser.entity.Contact;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author csmcool
 * @since 2022-08-03
 */
public interface ContactMapper extends BaseMapper<Contact> {

    /**
     * 更新网站联系方式
     * @param name
     * @param info
     * @return
     */
    @Update("UPDATE sjim_contact SET contact_info =#{info}  WHERE contact_name =#{name} ")
    Boolean updateContactInfo(@Param("name") String name,@Param("info") String info);
}
